package com.bing.e3113;

import java.io.IOException;
import java.io.PipedWriter;

public class WriteData {

	public void writeMethod(PipedWriter out){
		try{
			System.out.println("write begin");
			for(int i=0;i<300;i++){
				String outData=""+(i+1);
				out.write(outData);
				System.out.println(outData);
			}
			System.out.println("write end");
			out.close();
		}catch(IOException e){}
	}
}
